package com.linzp.bishe.service;

import com.linzp.bishe.entity.Accounts;
import com.baomidou.mybatisplus.extension.service.IService;
import com.linzp.bishe.model.AccountSearch;
import com.linzp.bishe.model.AccountUser;
import com.linzp.bishe.model.SimpleAccountUser;
import org.springframework.data.repository.query.Param;


import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author 林泽鹏
 * @since 2021-11-01
 */
public interface AccountsService extends IService<Accounts> {
	public String login(String account, String password, String code, String uuid);

	public Accounts checkAccountStatus(HttpServletRequest httpServletRequest);

	public boolean checkAccountIsAdmin(HttpServletRequest httpServletRequest);

	public List<AccountUser> getAccountsInformation(int currentPage, int pageSize, AccountSearch search);

	public void addAccountUser(AccountUser accountUser);

	public List<SimpleAccountUser> getAllSimpleAccountUser(Integer currentPage, Integer pageSize,AccountSearch search);

	public Integer getAllSimpleAccountUserCount(Integer currentPage, Integer pageSize,AccountSearch search);

	public SimpleAccountUser getSimpleAccountUser(Integer id);
}
